package com.example.helloworld;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class OpenLayout extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		Intent intent =	getIntent();
		int layoutID =	intent.getIntExtra("layout.id", -1);
		
		if (layoutID != -1) {
			setContentView(layoutID);
		}
	}
}
